package com.ruoyi.marketers.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 优惠券对象 merchant_coupon
 * 
 * @author ruoyi
 * @date 2023-10-18
 */
public class Coupon extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 优惠券编号 */
    private Long couponId;

    /** 优惠券名称 */
    @Excel(name = "优惠券名称")
    private String name;

    /** 面额 */
    @Excel(name = "面额")
    private Long faceValue;

    /** 优惠卷状态 */
    @Excel(name = "优惠卷状态")
    private Long status;

    /** 满额 */
    @Excel(name = "满额")
    private Long fullAmount;

    /** 有效期开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "有效期开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 有效期结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "有效期结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    public void setCouponId(Long couponId) 
    {
        this.couponId = couponId;
    }

    public Long getCouponId() 
    {
        return couponId;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setFaceValue(Long faceValue) 
    {
        this.faceValue = faceValue;
    }

    public Long getFaceValue() 
    {
        return faceValue;
    }
    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }
    public void setFullAmount(Long fullAmount) 
    {
        this.fullAmount = fullAmount;
    }

    public Long getFullAmount() 
    {
        return fullAmount;
    }
    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }
    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("couponId", getCouponId())
            .append("name", getName())
            .append("faceValue", getFaceValue())
            .append("status", getStatus())
            .append("fullAmount", getFullAmount())
            .append("startTime", getStartTime())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("endTime", getEndTime())
            .toString();
    }
}
